CC=/usr/bin/arm-apple-darwin9-g++
CXX=/usr/bin/arm-apple-darwin9-g++
PRODUCT_NAME=AVPlayer
BUILT_PRODUCTS_DIR=.
CONFIGURATION_TEMP_DIR=.
SRCROOT=.
IPHONE_IP=192.168.1.137

WRAPPER_NAME=$(PRODUCT_NAME)
APP_ABS=$(BUILT_PRODUCTS_DIR)/$(WRAPPER_NAME)
PRODUCT_ABS=$(APP_ABS)

LD=$(CC)
LDFLAGS = -framework CoreFoundation \
          -framework Foundation \
          -framework UIKit \
          -framework CoreGraphics \
          -framework MediaPlayer \
          -F/System/Library/Frameworks \
          -F/System/Library/PrivateFrameworks \
          -multiply_defined suppress \
          -bind_at_load \
          -Wall \
          -Werror \
          -fobjc-exceptions \
          -march=armv6 \
          -mcpu=arm1176jzf-s \
          -fobjc-call-cxx-cdtors \
		  -lobjc

CFLAGS = -fsigned-char -g0 -fobjc-exceptions \
  -Wall -Wundeclared-selector -Wreturn-type \
  -Wredundant-decls \
  -Wchar-subscripts \
  -Winline -Wswitch -Wshadow \
  -I/var/include_221 \
  -I/var/include/gcc/darwin/4.0 \
  -I. \
  -D_CTYPE_H_ \
  -D_BSD_ARM_SETJMP_H \
  -D_UNISTD_H_

all:	AVPlayer
	
AVPlayer:	AVPlayer.o MobileStudio/MSAppLauncher.o UIFilePickerController/UIFilePickerController.o
	$(LD) $(LDFLAGS) -o $@ $^

%.o:	%.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:

load: 